package docbookarchivemanager;

import java.io.IOException;
import org.xml.sax.SAXException;

/**
 * Main class.
 *
 * @author Jakub Hrachovec
 */
public class DocbookArchiveManager {

    public static final String VERSION = "1.0";

    /**
     * Starts the program.
     *
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            StartupManager.startupSequence(args);
        } catch (IllegalArgumentException | IOException | SAXException ex) {
            System.out.println(String.format("ERROR: %s", ex.getMessage()));
        } finally {
            StartupManager.cleanUp();
        }
    }
}
